package com.example.musicrecommend.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.musicrecommend.model.entity.Collect;
import com.example.musicrecommend.model.vo.SongVO;

import java.io.Serializable;

/**
* @author PERSON
* @description 针对表【collect(收藏)】的数据库操作Service
* @createDate 2024-10-03 17:12:22
*/
public interface CollectService extends IService<Collect> {


    /**
     * 参数校验
     * @param collect
     */
    void validCollect(Collect collect,boolean hasId);


    Page<SongVO> selectCollectSongsPage(Page<SongVO> page,Long userId);

    Collect selectOneIncludeDeleted(Wrapper<Collect> queryWrapper);

    Boolean updateCollectById(Serializable id,Collect newCollect);


}
